home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ MSO2K Security 1.xpl < prev    next >
Text File  |  1999-07-17  |  2KB  |  62 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="System\Security"
  5. "NAME"="Office 2000 Security"
  6. "VERSION"="1.0"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Trust installed files in Word"
  9. "TEXT 2"="Trust installed files in Excel"
  10. "TEXT 3"="Trust installed files in PowerPoint"
  11. "TEXT 4"="Trust installed files in Access"
  12. "DESCRIPTION 1"="???"
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16.  
  17.  
  18. sV1="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Word\Security\"
  19. sV2="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Excel\Security\"
  20. sV3="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\PowerPoint\Security\"
  21. sV4="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Access\Security\"
  22. sValName="DontTrustInstalledFiles" 'DW 
  23.  
  24. Sub Plugin_Initialize
  25.  Call Red(1,sV1)
  26.  Call Red(2,sV2)
  27.  Call Red(3,sV3)
  28.  Call Red(4,sV4)
  29. End Sub
  30.  
  31. Sub Red(ITM,VAL)
  32.   i=RegReadValue(VAL & sValName)
  33.   if i<>1 then SetUIElement ITM,true
  34. End Sub
  35.  
  36.  
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  41.  Call Wrt(1,sV1)
  42.  Call Wrt(2,sV2)
  43.  Call Wrt(3,sV3)
  44.  Call Wrt(4,sV4)
  45. End Sub
  46.  
  47. Sub Wrt(ITM,VAL)
  48.  b=GetUIElement(ITM)
  49.  if b=true then
  50.     s=RegReadValue(VAL & sValName)
  51.     if IsEmpty(s)=false then Call RegDeleteValue(VAL & sValName)
  52.  else
  53.     Call RegWriteValue(VAL & sValName,1,2)
  54.  end if
  55. end sub
  56.  
  57. Sub Plugin_Terminate 
  58. End Sub
  59.  
  60.  
  61.  
  62.